package edu.hunau.cxb.reflect;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

/**
 *
 *@author hb
 *
 * 2020-04-28 15:02:46
 */
public class ClassTest {

	@Test
	public void forName() throws Exception {
		//获得字符串的类对象
		Class<?> stringClass = Class.forName("java.lang.String");
		System.out.println(stringClass);
		
		Class<?> integer=Integer.class;
		System.out.println(integer);
		
		ArrayList<String> list = new ArrayList<String>();
		System.out.println(list.getClass());
	}
}
